﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using Library.Models;

namespace Library.Wcf
{
    public class DeviceWcfClient : ClientBase<IDeviceWcfService>, IDeviceWcfService
    {
        public DeviceWcfClient(string address) : base(new BasicHttpBinding(), new EndpointAddress(address))
        {}

        public List<TwiDevice> GetAllWithData()
        {
            return Channel.GetAllWithData();
        }

        public void WriteDevicePin(int address, int pin, bool value)
        {
            Channel.WriteDevicePin(address, pin, value);
        }
    }
}
